package com.learn.springboot.dao.request;

import java.io.Serializable;

import javax.validation.constraints.NotNull;

import com.learn.springboot.dao.request.base.PrimaryKeyRequest;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author suzheng
 * @date 2024-05-17
 **/
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class CommonPrimaryKeyRequest<T> extends CommonRequest implements PrimaryKeyRequest<T>, Serializable {

    private static final long serialVersionUID = 1932645516819856826L;
    @NotNull(message = "ID不能为空")
    private T id;
}
